package com.heima.demo;

import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;

public class MycollableTest {
    public static void main(String[] args) throws Exception {
        MyCallable mc =new MyCallable();
        FutureTask ft = new FutureTask(mc);
        Thread t = new Thread(ft);
        t.start();
        //call()方法返回的结果
        ft.get();
    }
}
